<style type="text/css">
.wds-search-icon {
    position: absolute;
    right: 1px;
    top: 1px;
    width: 38px;
    line-height: 36px;
    text-align: center;
    color: #000;
}
.wds-msearch-icon {
    position: absolute;
    right: 1px;
    top: 20px;
    width: 22px;
    line-height: 20px;
    text-align: center;
    color: #fff;
}
.layui-nav-item .layui-form .layui-input {
    padding-right: 38px;
}
  </style>
<ul class="layui-nav wds-nav-user">
<li class="layui-nav-item  layui-hide-xs" style="width: 200px;">
    
   <form class="layui-form" target="_blank">
          	<input type="hidden" name="type" value="question"/>
	          <input type="text" name="wd" autocomplete="off" placeholder="搜索问题或文章" class="layui-input">
	          <button class="wds-search-icon layui-icon layui-icon-search" style="border-style :none;" lay-submit="" lay-filter="J_searchForm"></button>
          </form>
    </li>
  <li class="layui-nav-item  layui-hide-sm layui-show-xs-block" style="width: 5px;">
    
   <form class="layui-form" action="{:url('wendasns/common/search')}" method="get">
          	
	          
	          <button type="submit" class="wds-msearch-icon layui-icon layui-icon-search" style="font-size: 20px; border-radius: 50%; border-style :none;"></button>
          </form>
    </li>
{if $loginUser.isLogin}
    
  <li class="layui-nav-item">
    <a href="{:url('wendasns/user/index',['dispatch'=>'notice'],false)}">消息<span class="layui-badge layui-bg-gray" style="font-size: 14px;">{$loginUser.data.notices}</span></a>
  </li>
  <li class="layui-nav-item" lay-unselect="">
    <a href="javascript:;" class="portrait-sm">{:portrait($loginUser.uid)}</a>
    <dl class="layui-nav-child">
    {volist name="mymenu" id="item"}
      <dd><a href="{$item.url}">{$item.name}</a></dd>
      {/volist}
      <dd><a href="{:url('ucentre/login/index',['dispatch'=>'logout'])}">退出</a></dd>
    </dl>
  </li>
{else}
    
  <li class="layui-nav-item">
    <!--<a href="{:url('ucentre/login/index')}" {if request()->isMobile() neq true}class="J_dialog" target="_blank"{/if}><i class="layui-icon layui-icon-login-wechat"></i> 登录</a>-->
    <a href="{:url('ucentre/login/index')}" {if request()->isMobile() neq true}{/if}><i class="layui-icon layui-icon-login-wechat"></i> 登录</a>
  </li>
  <li class="layui-nav-item">
    <a href="{:url('ucentre/register/index')}" {if request()->isMobile() neq true}{/if}>注册</a>
  </li>
{/if}
{:hook('global_navig_menu_item')}
</ul>
